Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 6 - Printing Resources / Printing Resources Reference
Constants and Data Types


Standard Number Structure

The standard numbering structure, of data type StandardNumberRec, defines how to output numbers. The raster package controls structure contains two of these structures.

struct gxStandardNumberRec {
   short    numberType;
   short    minWidth;
   char     padChar;
   char     alignment;
   Str31    startString;
   Str31    endString;
};

typedef struct gxStandardNumberRec gxStandardNumberRec, 
*gxStandardNumberPtr;
Field Description
numberType
The type of numeric output to be used. This is one of the types shown in Table 6-33 on page 6-76.
minWidth
If you are using the RasterNumToASCII number type, this is the minimum number of characters in the output number string. If you are using the RasterNumDirect number type, this is the minimum number of bytes in the output number string.
padChar
The character used to pad (in front) numbers that are shorter than the minimum width value.
alignment
A single byte used for alignment of data in this structure.
startString
The string sent in front of the number string.
endString
The string sent after the number string.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help